import React, { Component } from 'react'
import {NavLink} from "react-router-dom"
import {connect} from 'react-redux'
import RouterView from '../../router/router.view'
interface IProps{
    routerConfig:Array<any>,
    loginIn:boolean,
    history:any
}
export class Home extends Component<IProps> {
    render() {
         
            return (
                <div className='home'>
                    <div className="main">
                        <RouterView  routerConfig={this.props.routerConfig}/>
                    </div>
                    <footer className="footer">
                        <NavLink to='/home/index'>首页</NavLink>
                        <NavLink to='/home/my'>我的</NavLink>
                    </footer>
                </div>
            )
       
    }
}
const state=(state:any)=>{
    return {
        loginIn:state.loginIn
    }
}
export default connect(state)(Home) 
